package com.java.comprehensive.design.structural_model.decorator_pattern;

/**
 * 具体构建角色
 */
public class FriedRice extends FastFood {

    public FriedRice() {
        super(10, "炒饭");
    }


    @Override
    float cost() {
        return getPrice();
    }
}
